#!/usr/bin/env bash
cd nlp_service
gunicorn -w1 -b0.0.0.0:10000 'nlp-api:load_nlp_app(config_file="../config/config_local_itg.yml", logging_config_file="../config/logging.yml")' \
--daemon --access-logfile logs/access.log  --error-logfile logs/error.log -k gevent


cd ../src

gunicorn -w2 -b0.0.0.0:5001 'search-api:load_app(config_file="../config/config_local_itg.yml", logging_config_file="../config/logging.yml")' \
--daemon --access-logfile logs/access.log  --error-logfile logs/error.log -k gevent

